Switch

A Switch feature selects one of its child features and disables the other child features.

Switch operations are helpful if you need to switch out geometry or other operations based on component properties.

Properties

Name Description
Name Defines the name of the switch.
Choice Defines an expression that when evaluated selects a child feature depending the type of the returned value.

Boolean
True value selects the first child. False value disables all.

Integer
Uses a one-based index. That is, 1 selects the first child. Value 0 would not select any child feature, which in turn disables all of them.

Real
Uses a one-based index by rounding to the nearest integer below its value. That is, 1.9 selects the first child.

String
Selects the child feature, which name matches to the returned value of the choice expression. If no feature with the same name is found, all gets disabled.

Physics Defines a set of physics properties for the feature.